#ifndef _GAMEFONT_H_
#define _GAMEFONT_H_

#include "Rectangle.h"
#include <string>
#include <Windows.h>
#include <GL\gl.h>
class CGameFont
{
public:

	CGameFont();
	~CGameFont();

	
	void CreateFont(const std::string& strTypeface, 
					int iFontHeight, 
					int iFontWeight);

	void DrawText(const std::string& strText, int XPos, 
				  int YPos, GLfloat iRed=1.0, 
				  GLfloat iGreen=1.0, GLfloat iBlue=1.0);


	TRectanglei GetTextSize(const std::string& strText);

	static void SetDeviceContext(HDC hDevContext)  
	{ m_hDeviceContext = hDevContext; }

private:
	
	static HDC m_hDeviceContext;
	GLuint m_uiListBase;
	HFONT m_hFont;
};

#endif  